package com.yihuier.yihuier.Mapper.UserManager;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserFaceInfoMapper {

    /**
     * 注册时向表中添加
     * */
    @Insert("INSERT into user_face_info(user_id,creat_time,update_time) VALUES(#{user_id},#{create_time},#{update_time})")
    int addUserFaceInfo(@Param("user_id") int user_id,@Param("create_time") String create_time,@Param("update_time") String update_time);

    /**
     * 判断是否已经注册人脸信息
     * */
    @Select("SELECT user_id from user_face_info WHERE user_id = #{user_id}")
    String selectAddFaceIdStatusByUserId(int user_id);
}
